home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / internet / net commander 1.0 / ISP / SCRPTLST / QUESTAR.CMD < prev    next >
Encoding:
Text File  |  1996-02-15  |  6.7 KB  |  311 lines

  1. #    Questar Network Services Login.cmd
  2. #
  3. # Trumpet Winsock login script for QNSnet clients.
  4. # For more information or technical support, please contact:
  5. #       Questar Network Services
  6. #       voice: 405/848-3228
  7. #         fax: 405/843-9434
  8. #        data: 405/843-9395  (300-14,400 bps)   ** login as 'guest',
  9. #        data: 405/843-4857  (2400-28,800 bps)  ** password 'guest'.
  10. #       email: info@qns.com
  11. #
  12. # Author: Christopher Painter-Wakefield (cpwakfld@qns.com)
  13. # Created: 4/19/95
  14. # Revision notes:
  15.  
  16. # ************* Configuration Information **************
  17.  
  18. # If you have call waiting, change the zero on the following
  19. # line to a 1.  This will cause Trumpet to send a "*70" in
  20. # front of your phone number to disable call waiting; otherwise
  21. # an incoming call will confuse your modem and disconnect you.
  22. %callwait = 0
  23.  
  24. # Add any custom modem setup commands to this string.
  25. $modemsetup = "&C1"
  26.  
  27. # Edit maxbps if you upgrade to a faster modem.
  28. # maxbps: 0 = 14.4, 1 = 28.8
  29. %maxbps = 0
  30.  
  31. # If QNS phone numbers ever change, edit the phone numbers here.
  32. $n144 = "8439395"
  33. $n288 = "8434857"
  34.  
  35. $version_t = "QNSnet login script for Trumpet Winsock 2.0b"
  36. $version_s = "Script version 1.0 (4/19/95)"
  37.  
  38. echo on
  39.  
  40. # These blocks will cause Trumpet to ask you for your 
  41. # username and password one time only, and save them in your
  42. # trumpwsk.ini file (your password will be encrypted).
  43. if ![load $username]
  44.   if [username "Enter your QNS login username:"]
  45.     save $username
  46.   else
  47.     display \n"Sorry, cannot continue without a username!"\n
  48.     abort
  49.   end
  50. end
  51.  
  52. if ![load $password]
  53.   if [password "Enter your QNS login password:"]
  54.     save $password
  55.   else
  56.     display \n"Sorry, cannot continue without a password!"\n
  57.     abort
  58.   end
  59. end
  60.  
  61. if %maxbps
  62.   $numbera = $n288
  63.   $numberb = $n144
  64. else
  65.   $numbera = $n144
  66.   $numberb = $n288
  67. end
  68.  
  69. if %maxbps
  70.   $ratea = "2400 - 28.8"
  71.   $rateb = "300 - 14.4"
  72. else
  73.   $ratea = "300 - 14.4"
  74.   $rateb = "2400 - 28.8"
  75. end
  76.  
  77. # ************ Login *************
  78. display \n$version_t\n
  79. display $version_s\n\n
  80.  
  81. %attempts = 5
  82.  
  83. # Initialize modem
  84. output "ATZ"\13
  85. if ! [input 10 OK\n]
  86.   display \n"Modem is not responding!"\n
  87.   abort
  88. end
  89.  
  90. # Setup our modem
  91. output "AT"$modemsetup\13
  92. input 10 OK\n
  93.  
  94. # Dial phone number
  95. display \n"Dialing QNSnet:"\n
  96. %n = 0
  97. repeat
  98.   if %n = %attempts
  99.     display \n"Too many dial attempts."\n
  100.     abort
  101.   end
  102.   display "Trying "$ratea" number..."\n
  103.   output "ATDT"
  104.   if %callwait
  105.     output "*70"
  106.   end
  107.   output $numbera\n
  108.   %ok = [input 60 CONNECT]
  109.   if ! %ok
  110.     output "ATH0"\n
  111.     input 10 OK\n
  112.     display "Trying "$rateb" number..."\n
  113.     output "ATDT"
  114.     if %callwait
  115.       output "*70"
  116.     end
  117.     output $numberb\n
  118.     %ok = [input 60 CONNECT]
  119.     if ! %ok
  120.       output "ATH0"\n
  121.       input 10 OK\n
  122.     end
  123.   end
  124.   %n = %n + 1
  125. until %ok
  126.  
  127. display \n
  128. display "Connected.  Attempting to log in..."\n
  129.  
  130. if ! [input 15 annex:]
  131.   display "Expected but did not receive 'annex:'."\n
  132.   abort
  133. end
  134.  
  135. output "ppp"\n
  136.  
  137. if ! [input 15 Username:]
  138.   display "Expected but did not receive 'Username:'."\n
  139.   abort
  140. end
  141.  
  142. output $username\n
  143.  
  144. if ! [input 15 Password:]
  145.   display "Expected but did not receive 'Password:'."\n
  146.   abort
  147. end
  148.  
  149. output $password\n
  150.  
  151. display \n 
  152. display Login successful.
  153.  
  154. # Script ends here and PPP negotiation begins. 
  155.  
  156.  
  157.  
  158. -----------login288.cmd--------CUT-------------------------------------
  159.  
  160. # Trumpet Winsock login script for QNSnet clients.
  161. # For more information or technical support, please contact:
  162. #       Questar Network Services
  163. #       voice: 405/848-3228
  164. #         fax: 405/843-9434
  165. #        data: 405/843-9395  (300-14,400 bps)   ** login as 'guest',
  166. #        data: 405/843-4857  (2400-28,800 bps)  ** password 'guest'.
  167. #       email: info@qns.com
  168. #
  169. # Author: Christopher Painter-Wakefield (cpwakfld@qns.com)
  170. # Created: 4/19/95
  171. # Revision notes:
  172.  
  173. # ************* Configuration Information **************
  174.  
  175. # If you have call waiting, change the zero on the following
  176. # line to a 1.  This will cause Trumpet to send a "*70" in
  177. # front of your phone number to disable call waiting; otherwise
  178. # an incoming call will confuse your modem and disconnect you.
  179. %callwait = 0
  180.  
  181. # Add any custom modem setup commands to this string.
  182. $modemsetup = "&C1"
  183.  
  184. # Edit maxbps if you upgrade to a faster modem.
  185. # maxbps: 0 = 14.4, 1 = 28.8
  186. %maxbps = 1
  187.  
  188. # If QNS phone numbers ever change, edit the phone numbers here.
  189. $n144 = "8439395"
  190. $n288 = "8434857"
  191.  
  192. $version_t = "QNSnet login script for Trumpet Winsock 2.0b"
  193. $version_s = "Script version 1.0 (4/19/95)"
  194.  
  195. echo on
  196.  
  197. # These blocks will cause Trumpet to ask you for your 
  198. # username and password one time only, and save them in your
  199. # trumpwsk.ini file (your password will be encrypted).
  200. if ![load $username]
  201.   if [username "Enter your QNS login username:"]
  202.     save $username
  203.   else
  204.     display \n"Sorry, cannot continue without a username!"\n
  205.     abort
  206.   end
  207. end
  208.  
  209. if ![load $password]
  210.   if [password "Enter your QNS login password:"]
  211.     save $password
  212.   else
  213.     display \n"Sorry, cannot continue without a password!"\n
  214.     abort
  215.   end
  216. end
  217.  
  218. if %maxbps
  219.   $numbera = $n288
  220.   $numberb = $n144
  221. else
  222.   $numbera = $n144
  223.   $numberb = $n288
  224. end
  225.  
  226. if %maxbps
  227.   $ratea = "2400 - 28.8"
  228.   $rateb = "300 - 14.4"
  229. else
  230.   $ratea = "300 - 14.4"
  231.   $rateb = "2400 - 28.8"
  232. end
  233.  
  234. # ************ Login *************
  235. display \n$version_t\n
  236. display $version_s\n\n
  237.  
  238. %attempts = 5
  239.  
  240. # Initialize modem
  241. output "ATZ"\13
  242. if ! [input 10 OK\n]
  243.   display \n"Modem is not responding!"\n
  244.   abort
  245. end
  246.  
  247. # Setup our modem
  248. output "AT"$modemsetup\13
  249. input 10 OK\n
  250.  
  251. # Dial phone number
  252. display \n"Dialing QNSnet:"\n
  253. %n = 0
  254. repeat
  255.   if %n = %attempts
  256.     display \n"Too many dial attempts."\n
  257.     abort
  258.   end
  259.   display "Trying "$ratea" number..."\n
  260.   output "ATDT"
  261.   if %callwait
  262.     output "*70"
  263.   end
  264.   output $numbera\n
  265.   %ok = [input 60 CONNECT]
  266.   if ! %ok
  267.     output "ATH0"\n
  268.     input 10 OK\n
  269.     display "Trying "$rateb" number..."\n
  270.     output "ATDT"
  271.     if %callwait
  272.       output "*70"
  273.     end
  274.     output $numberb\n
  275.     %ok = [input 60 CONNECT]
  276.     if ! %ok
  277.       output "ATH0"\n
  278.       input 10 OK\n
  279.     end
  280.   end
  281.   %n = %n + 1
  282. until %ok
  283.  
  284. display \n
  285. display "Connected.  Attempting to log in..."\n
  286.  
  287. if ! [input 15 annex:]
  288.   display "Expected but did not receive 'annex:'."\n
  289.   abort
  290. end
  291.  
  292. output "ppp"\n
  293.  
  294. if ! [input 15 Username:]
  295.   display "Expected but did not receive 'Username:'."\n
  296.   abort
  297. end
  298.  
  299. output $username\n
  300.  
  301. if ! [input 15 Password:]
  302.   display "Expected but did not receive 'Password:'."\n
  303.   abort
  304. end
  305.  
  306. output $password\n
  307.  
  308. display \n 
  309. display Login successful.
  310.  
  311. # Script ends here and PPP negotiation begins.